import Vue from 'vue'
import VCharts from 'v-charts'
import App from './App'
import router from './router'

import "babel-polyfill"
Vue.use(VCharts)

router.beforeEach((to, from, next) => {
  let debug = false

  if (to.meta.title) {
    document.title = to.meta.title
  }

  next()
   
})

new Vue({
    router,
    render: h => h(App)
}).$mount('#app')